<?phpuse Illuminate\Database\Capsule\Manager as DB;/** * @name 菜单图标 */class IconController extends ACommonController{    public function init() {        $this->table = 'sys_icon';        $this->primaryKey = 'id';        parent::init();    }    public function getAction($flag=false)    {        json(parent::getAction(true));    }    /**     * @name 图标列表     */    public function listAction()    {        $this->_view->assign('dataset', DB::table($this->table)->get());        $this->_view->display('icon/list.html');    }}